/*
 * XML Type:  XDBSource
 * Namespace: http://www.seedwill.com/xul/core
 * Java type: com.seedwill.xul.core.XDBSource
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.core;


/**
 * An XML XDBSource(@http://www.seedwill.com/xul/core).
 *
 * This is a complex type.
 */
public interface XDBSource extends com.seedwill.xul.core.XSource
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XDBSource.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s790E6810E76A77BB212DD6D4DA094898").resolveHandle("xdbsource0bc7type");
    
    /**
     * Gets the "driver" element
     */
    java.lang.String getDriver();
    
    /**
     * Gets (as xml) the "driver" element
     */
    org.apache.xmlbeans.XmlString xgetDriver();
    
    /**
     * True if has "driver" element
     */
    boolean isSetDriver();
    
    /**
     * Sets the "driver" element
     */
    void setDriver(java.lang.String driver);
    
    /**
     * Sets (as xml) the "driver" element
     */
    void xsetDriver(org.apache.xmlbeans.XmlString driver);
    
    /**
     * Unsets the "driver" element
     */
    void unsetDriver();
    
    /**
     * Gets the "url" element
     */
    java.lang.String getUrl();
    
    /**
     * Gets (as xml) the "url" element
     */
    org.apache.xmlbeans.XmlString xgetUrl();
    
    /**
     * True if has "url" element
     */
    boolean isSetUrl();
    
    /**
     * Sets the "url" element
     */
    void setUrl(java.lang.String url);
    
    /**
     * Sets (as xml) the "url" element
     */
    void xsetUrl(org.apache.xmlbeans.XmlString url);
    
    /**
     * Unsets the "url" element
     */
    void unsetUrl();
    
    /**
     * Gets the "db" element
     */
    java.lang.String getDb();
    
    /**
     * Gets (as xml) the "db" element
     */
    org.apache.xmlbeans.XmlString xgetDb();
    
    /**
     * True if has "db" element
     */
    boolean isSetDb();
    
    /**
     * Sets the "db" element
     */
    void setDb(java.lang.String db);
    
    /**
     * Sets (as xml) the "db" element
     */
    void xsetDb(org.apache.xmlbeans.XmlString db);
    
    /**
     * Unsets the "db" element
     */
    void unsetDb();
    
    /**
     * Gets the "user" element
     */
    java.lang.String getUser();
    
    /**
     * Gets (as xml) the "user" element
     */
    org.apache.xmlbeans.XmlString xgetUser();
    
    /**
     * True if has "user" element
     */
    boolean isSetUser();
    
    /**
     * Sets the "user" element
     */
    void setUser(java.lang.String user);
    
    /**
     * Sets (as xml) the "user" element
     */
    void xsetUser(org.apache.xmlbeans.XmlString user);
    
    /**
     * Unsets the "user" element
     */
    void unsetUser();
    
    /**
     * Gets the "password" element
     */
    java.lang.String getPassword();
    
    /**
     * Gets (as xml) the "password" element
     */
    org.apache.xmlbeans.XmlString xgetPassword();
    
    /**
     * True if has "password" element
     */
    boolean isSetPassword();
    
    /**
     * Sets the "password" element
     */
    void setPassword(java.lang.String password);
    
    /**
     * Sets (as xml) the "password" element
     */
    void xsetPassword(org.apache.xmlbeans.XmlString password);
    
    /**
     * Unsets the "password" element
     */
    void unsetPassword();
    
    /**
     * Gets array of all "extension" elements
     */
    com.seedwill.xul.core.XPairItem[] getExtensionArray();
    
    /**
     * Gets ith "extension" element
     */
    com.seedwill.xul.core.XPairItem getExtensionArray(int i);
    
    /**
     * Returns number of "extension" element
     */
    int sizeOfExtensionArray();
    
    /**
     * Sets array of all "extension" element
     */
    void setExtensionArray(com.seedwill.xul.core.XPairItem[] extensionArray);
    
    /**
     * Sets ith "extension" element
     */
    void setExtensionArray(int i, com.seedwill.xul.core.XPairItem extension);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "extension" element
     */
    com.seedwill.xul.core.XPairItem insertNewExtension(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "extension" element
     */
    com.seedwill.xul.core.XPairItem addNewExtension();
    
    /**
     * Removes the ith "extension" element
     */
    void removeExtension(int i);
    
    /**
     * Gets the "referContext" element
     */
    java.lang.String getReferContext();
    
    /**
     * Gets (as xml) the "referContext" element
     */
    org.apache.xmlbeans.XmlString xgetReferContext();
    
    /**
     * True if has "referContext" element
     */
    boolean isSetReferContext();
    
    /**
     * Sets the "referContext" element
     */
    void setReferContext(java.lang.String referContext);
    
    /**
     * Sets (as xml) the "referContext" element
     */
    void xsetReferContext(org.apache.xmlbeans.XmlString referContext);
    
    /**
     * Unsets the "referContext" element
     */
    void unsetReferContext();
    
    /**
     * Gets the "referContextType" element
     */
    java.lang.String getReferContextType();
    
    /**
     * Gets (as xml) the "referContextType" element
     */
    org.apache.xmlbeans.XmlString xgetReferContextType();
    
    /**
     * True if has "referContextType" element
     */
    boolean isSetReferContextType();
    
    /**
     * Sets the "referContextType" element
     */
    void setReferContextType(java.lang.String referContextType);
    
    /**
     * Sets (as xml) the "referContextType" element
     */
    void xsetReferContextType(org.apache.xmlbeans.XmlString referContextType);
    
    /**
     * Unsets the "referContextType" element
     */
    void unsetReferContextType();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.seedwill.xul.core.XDBSource newInstance() {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.seedwill.xul.core.XDBSource newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static com.seedwill.xul.core.XDBSource parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.seedwill.xul.core.XDBSource parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.seedwill.xul.core.XDBSource parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.seedwill.xul.core.XDBSource parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.seedwill.xul.core.XDBSource parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static com.seedwill.xul.core.XDBSource parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.seedwill.xul.core.XDBSource parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.core.XDBSource parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static com.seedwill.xul.core.XDBSource parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.seedwill.xul.core.XDBSource) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
